package com.manage.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.manage.base.service.impl.BaseServiceImpl;
import com.manage.user.dao.IUserDao;
import com.manage.user.model.Menu;
import com.manage.user.model.Operation;
import com.manage.user.model.User;
import com.manage.user.service.IUserService;

@Service("userService")
@Transactional
public class UserServiceImpl extends BaseServiceImpl<User> implements
    IUserService {

    @Autowired
    private IUserDao userDao;

	@Override
	public List<Menu> menuSelect(User user) throws Exception {
		return userDao.menuSelect(user);
	}

	@Override
	public List<Operation> operationSelect(User user) throws Exception {
		return userDao.operationSelect(user);
	}

}
